|
|
|
|
|
|
|
Class Module icon. Visual Basic will add a new class module with the default name Class1 to your project. |
|
|
|
|
|
|
|
|
Figure 1.2.
The Add Class Module dialog box lets
you add a new class from scratch or create a
new one based on one of the class
templates shown. |
|
|
|
|
|
|
|
|
Building a Class with the Class Builder |
|
|
|
|
|
|
|
|
If you have the Enterprise Edition of Visual Basic, you can create classes from scratch using the helpful Class Builder. This utility is a distant cousin of Rational Rose/Visual Basic and Microsoft Visual Modeler in that it lets you build classes in an automated fashion. |
|
|
|
|
|
|
|
|
If you haven't done so already, make sure Class Builder is available in the Add-In Manager. To make it available, choose Add-Ins | Add-In Manager from the menu. You will see the Add-In Manager dialog box (see Figure 1.3). Select the Visual Basic Class Builder utility by clicking the check box associated with this item. Click OK. |
|
|
|
|
|
|
|
|
Figure 1.3.
The Add-In Manager dialog box. |
|
|
|
|
|
|
|
|
Now you're ready to work with Class Builder. To start this utility, choose Add-Ins Class Builder from the menu. You will see the Class Builder utility, as illustrated in Figure 1.4. |
|
|
|
|
|